package com.scs.application.modules.fsd.mapper;

import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.fsd.entity.FsdUserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
@Repository
public interface UserRoleMapper extends IBaseMapper<FsdUserRole> {
    List<Map<String, Object>> getRolesByUserId(@Param("userId") String userId);

    List<FsdUserRole> getUsersByRole(String id);
}
